try:
    file = open("C:/Users/Lenovo/Desktop/eorr.txt","r",encoding="UTF-8")
except Exception:
    file = open("C:/Users/Lenovo/Desktop/eorr.txt","w",encoding="UTF-8")
    file.write("Hello World")
    file.flush()
else:
    print("无异常")
finally:
    print("Hello World")
   